package com.ncloud.crm.service.impl;

import com.ncloud.crm.entity.BsPublicCloud;
import com.ncloud.crm.mapper.BsPublicCloudMapper;
import com.ncloud.crm.service.BsPublicCloudService;

import java.util.List;

import org.apache.log4j.LogManager;
import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created by shiqiang on 2017/4/17.
 */
@Service
public class BsPublicCloudServiceImpl implements BsPublicCloudService {
	private static final Logger logger = LogManager.getLogger(BsPublicCloudServiceImpl.class);
	@Autowired
	private BsPublicCloudMapper bsPublicCloudMapper;
	@Override
	public int insertNodeCloud(BsPublicCloud eqpt) {
		return bsPublicCloudMapper.insertNodeCloud(eqpt);
	}

	@Override
	public BsPublicCloud getNodeCloudInfoByPk(long cloudId) {
		return bsPublicCloudMapper.getNodeCloudInfoByPk(cloudId);
	}

	@Override
	public int updateNodeCloud(BsPublicCloud bsPublicCloud) {
		return bsPublicCloudMapper.updateNodeCloud(bsPublicCloud);
	}

	@Override
	public List<BsPublicCloud> getNodeCloudByNodeId(Long nodeId) {
		return bsPublicCloudMapper.getNodeCloudByNodeId(nodeId);
	}

	@Override
	public List<BsPublicCloud> getBsNodeCloudByNodeId(Long nodeId) {
		return bsPublicCloudMapper.getBsNodeCloudByNodeId(nodeId);
	}
}